
package practical;

import java.awt.Point;

/**
 * Reference type 觀念糾正<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * 
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class Practical002
{
	public Practical002()
	{
		Point a = new Point( 0, 0 );
		Point b = new Point( 1, 1 );

		System.out.println( "Before:" + a + ", " + b );

		a = b;
		System.out.println( "During:" + a + ", " + b );

		a.x = 2;
		a.y = 2;
		System.out.println( "After:" + a + ", " + b );
	}

	public static void main( String[] args )
	{
		new Practical002();
	}
}
